/*
 * Selectable.java  0.4.0 / Oct 26, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing;

/**
 * Selectable Interface.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public interface Selectable {

  /**
   * Returns <tt>true</tt> if object is selected; otherwise <tt>false</tt>.
   *
   * @return <tt>true</tt> if object is selected; otherwise <tt>false</tt>
   */
  public boolean isSelected();

  /**
   * Sets selected state of the object.
   *
   * @param selected <tt>true</tt> if object is selected
   */
  public void setSelected(boolean selected);

  /**
   * Returns selectable group.
   *
   * @return selectable group
   */
  public SelectableGroup getSelectableGroup();

  /**
   * Sets selectable group.
   *
   * @param selectableGroup the selectable group
   */
  public void setSelectableGroup(SelectableGroup selectableGroup);

}
